package com.gec.service.impl;

import java.util.List;

import com.gec.dao.GoodDao;
import com.gec.dao.Impl.GoodDaoImpl;
import com.gec.entity.Good;
import com.gec.service.GoodService;

public class GoodServiceImpl implements GoodService {

	private GoodDao dao = new GoodDaoImpl();

	@Override
	public List<Good> findListByType(int typeid) {
		return dao.selectListByType(typeid);
	}

	@Override
	public List<Good> findHot(int shopid) {
		return dao.selectHot(shopid);
	}

	@Override
	public List<Good> findListByShop(int shopid) {
		return dao.selectListByShop(shopid);
	}

	@Override
	public List<Good> findHots(int shopid) {
		return dao.selectHots(shopid);
	}
}
